package com.example.conf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author wpdcn
 * @since 2020-04-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("shop_group_buy_order")
@ApiModel(value="ShopGroupBuyOrderEntity对象", description="")
public class ShopGroupBuyOrderEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Column(comment = "主键id")
    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Column(comment = "团购活动id")
    @ApiModelProperty("团购活动id")
    private Long campId;

    @Column(comment = "轮次")
    @ApiModelProperty("轮次")
    private Integer turn;

    @Column(comment = "团购信息id")
    @ApiModelProperty(value = "团购信息id")
    private Long groupBuyInfoId;

    @Column(comment = "购买会员id")
    @ApiModelProperty(value = "购买会员id")
    private String memberId;

    @Column(comment = "购买数量")
    @ApiModelProperty("购买数量")
    private Integer number;

    @Column(comment = "规格id")
    @ApiModelProperty("规格id")
    private Long skuId;

    @Column(comment = "订单号")
    @ApiModelProperty(value = "订单号")
    private String orderNo;

    @Column(comment = "收货信息id")
    @ApiModelProperty("收货信息id")
    private Long deliveryId;

    @Column(comment = "配送方式：1-自提；2-邮寄；3-自提+邮寄")
    @ApiModelProperty("配送方式：1-自提；2-邮寄；3-自提+邮寄")
    private String deliveryMethod;

    @Column(comment = "留言")
    @ApiModelProperty("留言")
    private String liveMessage;


}
